import BaseService from './_BaseService'
import axios from 'axios'
import config from '../config'

class TaskLeaderService extends BaseService {
  root = window.apiPath + '/task-leaders';

  saveLeader(entity) {
    return axios.post(config.SERVER_URL + this.root, {...entity, responseType: 'json'})
      .then(res => res)
  }

}

export default new TaskLeaderService()
